package it.polimi.swKnights.SWIMv2.ejb.authentication;

import javax.ejb.Local;

import it.polimi.swKnights.SWIMv2.ejb.entityBeans.RegisteredUser;
import it.polimi.swKnights.SWIMv2.ejb.exceptions.InvalidLoginPrivilegesException;
import it.polimi.swKnights.SWIMv2.ejb.exceptions.LoginFailException;

@Local
public interface LoginHandlerLocal
{
	<T extends RegisteredUser> void checkLoginDataAndPrivileges(
			String userName, String password, Class<T> clazz)
			throws LoginFailException, InvalidLoginPrivilegesException;

	void checkBanned(String userName) throws InvalidLoginPrivilegesException;
}
